package top.luoblog.strategy;

/**
 * @author : luo
 */
public class OperationDivide implements Operation {

    @Override
    public int doOperation(int num1, int num2) {
        if (num2 == 0) {
            throw new RuntimeException("by zero");
        }
        return num1 / num2;
    }

}
